Hi
I have additional question. Maybe I should open a new topic, but it's kind of related.
So, I am making this GUI with the sub-pages. The thing is, the same GUI will be used for different customers. Some will have certain pages disabled and also logic of a single page might be slightly different. Some customers may have exactly the same GUI. The question is, should I inherit from a basic page for each customer and override certain functions, or should I have a single page and use a variable "Customer" and make certain exceptions with the if structures.
Additional thing bugging me is that some of the pages will look very similar and have a similar functionality. There might be some additional elements or some less. Again, should I use inheritance or a variable with the if structure?
I don't want to overuse the inheritance, but I imagine the if-structures can get messy, especially as the number of customers grows.
So, my idea was to do the following:
basicPage
similarPage
similarPageCustomer1
similarPageCustomer2and3
anotherSimilarPage
anotherSimilarPageCustomer1
anotherSimilarPageCustomer2and3
thirdSimilarPage
thirdSimilarPageCustomer1
thirdSimilarPageCustomer2and3
But that seems like a lot of inheritance and new classes for each customer, considering that for some of them only minor things might be different, or nothing at all.
Thanks for the advice.